<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/vue.js" type="text/javascript">
			
		</script>
		<style type="text/css">
			
		</style>
	</head>
	<body>
		<div id="app">
			<cn>
			</cn>
		</div>
		
		<template id = "tem">
			<div>
				<h2>{{h1}}</h2>
				<p>{{p1}}</p>
			</div>
		</template>
		
		<script type="text/javascript">
			
			const app = new Vue({
				el:"#app",
				data:{
					
				},
				components:{
					cn:{
						template:"#tem",
						data(){
							return{h1:"这是标题",p1:"这是内容哈哈哈哈哈"}
						},
						components:{
							cd:{
								template:"#tem",
								data(){
									return{h1:"这又是标题",p1:"这又是内容哈哈哈哈哈"}
								},
							}
						},
					},
				}
			})
		</script>
	</body>
</html>
